package cn.sciento.onelink.sim.aggregative.total.num.ec;

import cn.sciento.onelink.CommonResponse;
import cn.sciento.onelink.LinkRequest;
import cn.sciento.onelink.utils.TransIdUtil;
import lombok.Data;

import java.util.HashMap;

/**
 * 集团用户数查询
 * @author waltonlee
 */
@Data
public class SimTotalNumEcRequest extends LinkRequest<CommonResponse<SimTotalNumEcResult>> {
    private String appId;
    private String token;
    private String queryDate;

    public SimTotalNumEcRequest(String appId, String token, String queryDate) {
        super(Method.GET);
        this.appId = appId;
        this.token = token;
        this.queryDate = queryDate;
        this.path = "/ec/query/sim-total-num-ec";
        HashMap<String, Object> bodyMap = new HashMap<String, Object>();
        bodyMap.put("transid", TransIdUtil.generate(appId));
        bodyMap.put("token",token);
        bodyMap.put("queryDate",queryDate);
        this.setCompleteUrl(this.path,bodyMap);
    }
}
